﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PrincipalUbicaTuReu.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<UPC.UbicaTuReu.WEB.WSUsuario.Usuario>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<h2>Registro de Usuarios</h2>
<br />
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<fieldset>
        <legend>Lista de Usuarios</legend>
        <br />
        <table style="width:100%" cellpadding="4" cellspacing="0" border="0" class="lista">
            <tr class="listaHeader">
                <td style="width:1%"></td>
                <td style="width:20%" align="center">
                    <div class="editor-field">
                        Codigo Usuario
                    </div>                    
                </td>
                <td style="width:30%" align="center">
                    <div class="editor-field">
                        Usuario
                    </div>                                                
                </td>
                <td style="width:30%" align="center">
                    <div class="editor-field">
                        Email
                    </div>                                
                </td>
                <td style="width:15%" align="center">
                    <div class="editor-field">                        
                        DNI
                    </div>
                </td>
                <td style="width:1%"></td>
            </tr>
            <% foreach (var item in Model) { %>
            <tr>
                <td style="width:1%">
                    <%: Html.ActionLink("Edit", "Edit", new { id = item.Codigo })%>
                    </td>
                <td style="width:1%">
                    <%: Html.ActionLink("Delete", "Delete", new { id = item.Codigo })%>
                </td>
                <td style="width:20%" align="center">
                    <div class="editor-label">
                        <%: item.Codigo %>
                    </div>                    
                </td>
                <td style="width:30%" align="justify">
                    <div class="editor-field">
                        <%: item.Nombre  %>
                    </div>                                                
                </td>
                <td style="width:30%" align="justify">
                    <div class="editor-field">
                        <%: item.Correo %>
                    </div>                                
                </td>
                <td style="width:15%" align="center">
                    <div class="editor-field">                        
                        <%: item.Dni %>
                    </div>
                </td>
                <td style="width:1%"></td>
            </tr>
        <% } %>
        </table>

</fieldset>

<div>
<br /><br />
    <%: Html.ActionLink("Agregar Usuario", "Create") %>
</div>

<table border="0">
    <tr>
        <td style="height:30px;"></td>
    </tr>
</table>


</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

